﻿using System;
using System.Collections.Generic;

namespace Desktop.Library
{
    public class TableBase
    {
        #region Classes

        public class ColumnDefinition
        {
            #region Constructors

            public ColumnDefinition(string name, Type type)
            {
                Name = name;
                Type = type;
            }

            #endregion

            #region Properties

            public string Name { get; set; }
            public Type Type { get; set; }

            #endregion

            #region Methods

            public override string ToString()
            {
                return Name;
            }

            #endregion
        }

        #endregion

        #region Constructors

        public TableBase()
        {
            Columns = new List<ColumnDefinition>();
            Data = new Dictionary<ColumnDefinition, List<object>>();
        }

        #endregion

        #region Properties

        public List<ColumnDefinition> Columns { get; private set; }
        public Dictionary<ColumnDefinition, List<object>> Data { get; private set; }

        #endregion
    }
}